<template>
	<view class="content"> 
		
		<view class="invite" @click="goto('../Invation/Invation')">
			<image src="../../../static/InvitationPoints.png" mode="scaleToFill" class="img"></image>
			<view class="inviteText">
				<text>分享有礼 | 邀请好友注册下单得积分</text>
				<text style="color: #999;margin: 20px 0;">长期有效</text>
				<button size="mini">马上参与</button>
			</view>
		</view>
		
		<view class="invite" @click="goto('../../shopping/shopping')">
			<image src="../../../static/throw.png" mode="scaleToFill" class="img"></image>
			<view class="inviteText">
				<text >分享有礼 | 免费领取垃圾代扔卷</text>
				<text style="color: #999;margin: 20px 0;">长期有效</text>
				<button style="background-color: coral;" size="mini">立即领取</button>
			</view>
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			goto(url){
				uni.navigateTo({
					url
				})
			}
		}
	}
</script>

<style lang="scss">
.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		margin:30rpx ;
		
		.invite{
			width: 100%;
			// height: 26vh;
			display: flex;
			background-color: $uni-bg-color-grey;
			border-radius: $uni-border-radius-lg;
			margin-bottom: $uni-spacing-col-lg;
			.inviteText{
				width: 45%;
				display: flex;
				flex-direction: column;
				justify-content: space-evenly;
				padding:$uni-spacing-row-base $uni-spacing-row-lg;
				button{
					background-color:#4cc9a4;
					border-radius:$uni-border-radius-lg*3;
					margin-left: 0;
					padding: 0 $uni-spacing-col-base;
				}
			}
			.img{
				width: 55%;
				// height: 300rpx;
				height: auto;
				border-radius: $uni-border-radius-lg;
			}
		}
	}
</style>
